package cn.com.surker.production.entity;

import cn.com.surker.base.BaseEntity;
import cn.com.surker.enums.StateEnum;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 泵送设备表
 * </p>
 *
 * @author admin
 * @since 2024-09-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("production_pump_device")
public class PumpDevice extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	public PumpDevice() {
	}

	public PumpDevice(Long pumpTypeId, Long pumpNormId, String name, String code, String carNo, Integer workStatus, Integer fuelType, String creator) {
		this.pumpTypeId = pumpTypeId;
		this.pumpNormId = pumpNormId;
		this.name = name;
		this.code = code;
		this.carNo = carNo;
		this.fuelType = fuelType;
		this.workStatus = workStatus;
		this.status = StateEnum.ENABLED.getCode();
		this.creator = creator;
		this.createTime = new Date();
	}


	/**
	 * 标识
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 设备类型ID
	 */
	private Long pumpTypeId;

	/**
	 * 设备规格
	 */
	private Long pumpNormId;

	/**
	 * 泵车名称
	 */
	private String name;

	/**
	 * 设备编码
	 */
	private String code;

	/**
	 * 车牌号
	 */
	private String carNo;

	/**
	 * 燃油类型,使用枚举CarFuelEnum
	 */
	private Integer fuelType;

	/**
	 * 泵车工作状态,使用枚举CarWorkStatusEnum
	 */
	private Integer workStatus;

}
